package com.example.p96;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * @author Lenovo
 */
public class Main {
    public static void main(String[] args) {
        List list = Arrays.asList("one Two three Four six one three Four".split("") );
        System.out.println("List :"+list);
        Collections.replaceAll(list, "one", "hundrea");
        System.out.println("替换后的List:"+list);

    }
}
